/**
 * BaseDAO.java - 2012-2-10
 *
 * Licensed Property to China UnionPay Co., Ltd.
 * 
 * (C) Copyright of China UnionPay Co., Ltd. 2010
 *     All Rights Reserved.
 *
 * Project Info: China UnionPay Internet Acquiring Project
 * 
 * Modification History:
 * =============================================================================
 *   Author         Date          Description
 *   ------------ ---------- ---------------------------------------------------
 *        
 * =============================================================================
 */
package com.lijin.batchsys.framework.dao;

import java.util.Map;

import org.springframework.jdbc.core.support.JdbcDaoSupport;

import com.lijin.batchsys.framework.common.BatchSysException;

/**
 * Description: 批量框架数据库操作基本类
 * 
 * (C) Copyright of China UnionPay Co., Ltd. 2010.
 * 
 */
public class BaseDAO extends JdbcDaoSupport {

	protected String dbType = "db2"; // 数据库类型，默认是DB2
	
	protected Map<String, String> tableNames; // 批量信息表表名

	public void setDbType(String dbType) {
		this.dbType = dbType;
	}

	public Map<String, String> getTableNames() {
		if (tableNames == null || tableNames.isEmpty()) {
			throw new BatchSysException("批量框架相关表名未配置");
		}
		return tableNames;
	}

	public void setTableNames(Map<String, String> tableNames) {
		this.tableNames = tableNames;
	}
}
